import request from '@/utils/request.js'
const Mock = true
// api接口
const api = {
  // 小程序首页信息接口
  indexInfo(data) {
    const url = 'indexInfo'
    return request(url, data, 'POST')
  },
  // 获取分类的商品数据列表接口
  getGoods(data) {
    const url = 'getGoods'
    return request(url, data, 'POST')
  },
  // 获取商品详情接口
  getGoodDetail(data) {
    const url = 'getGoodDetail'
    return request(url, data, 'POST')
  },
  // 微信用户登录
  wxLogin(data) {
    const url = 'wxLogin'
    return request(url, data, 'POST')
  },
  // 微信登录获取个人页面数据接口
  getUserInfo(data) {
    const url = 'getUserInfo'
    return request(url, data, 'POST')
  },
  // 用户下单接口
  order(data) {
    const url = 'order'
    return request(url, data, 'POST')
  },

  // 用户订单查看订单详情数据
  getOrderDetail(data) {
    const url = 'getOrderDetail'
    return request(url, data, 'POST')
  },
  // 用户取消订单接口
  cancelOrder(data) {
    const url = 'cancelOrder'
    return request(url, data, 'POST')
  },
  // 用户查看我的订单列表
  getOrders(data) {
    const url = 'getOrders'
    return request(url, data, 'POST')
  },
  // 获取某个订单送奶日历
  getOrderDeliveryPlan(data) {
    const url = 'getOrderDeliveryPlan'
    return request(url, data, 'POST')
  },
  // 获取待配送日期计划接口
  getStopOrderPlan(data) {
    const url = 'getStopOrderPlan'
    return request(url, data, 'POST')
  },
  // 停奶计划接口
  stopOrder(data) {
    const url = 'stopOrder'
    return request(url, data, 'POST')
  },
  // 改奶操作计算接口
  calcChangeOrder(data) {
    const url = 'calcChangeOrder'
    return request(url, data, 'POST')
  },
  // 改奶操作接口
  changeOrder(data) {
    const url = 'changeOrder'
    return request(url, data, 'POST')
  },
  // 订单送奶日历查看
  getOrderCalendar(data) {
    const url = 'getOrderCalendar'
    return request(url, data, 'POST')
  },
  // 
}

export default api
